projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d72ba2
)
textbuffer: Fix a leak
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 7 Aug 2020 19:26:11 +0000
(15:26 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 7 Aug 2020 19:26:11 +0000
(15:26 -0400)
gtk_text_buffer_insert_markup was leaking all the tags
that it inserts.
gtk/gtktextbuffer.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextbuffer.c
b/gtk/gtktextbuffer.c
index 0b03f97c627f6a9d34103d9aba80f7867b6b1675..33d9b4a8c486dc47bd259c3f4f54d16d0ffbb4e5 100644
(file)
--- a/
gtk/gtktextbuffer.c
+++ b/
gtk/gtktextbuffer.c
@@
-4575,6
+4575,8
@@
gtk_text_buffer_insert_with_attributes (GtkTextBuffer *buffer,
gtk_text_buffer_insert_with_tags (buffer, iter, text + start, end - start, tag, NULL);
gtk_text_buffer_get_iter_at_mark (buffer, iter, mark);
+
+ g_object_unref (tag);
}
while (pango_attr_iterator_next (attr));